import { ListColumns } from "@/api/interface/ListColumns";
import { EditColumns } from "@/api/interface/EditColumns";
import { requestSysDictionaryGetOptions } from "@/api/modules/sysDictionary";
	
	
	
	
	
	
	


//data.ts 该文件为自动生成，每次生成都会进行覆盖，请不要动该文件
export namespace TripItem {
//字段名称enum
export enum Fields {
	id="id",
	trip_id="trip_id",
	item_name="item_name",
	quantity="quantity",
	created_at="created_at",
	updated_at="updated_at",

}

//[列表]字段配置数据列表
export const listColumnsData: ListColumns = new ListColumns(
{ type: "selection", fixed: "left", width: 70 },
	{ prop: "id", label: "ID",  align: "",isShow: true,tag: false },
	{ prop: "trip_id", label: "旅行ID",  align: "",isShow: true,tag: false },
	{ prop: "item_name", label: "物品名称",  align: "",isShow: true,tag: false },
	{ prop: "quantity", label: "数量",  align: "",isShow: true,tag: false },
	{ prop: "created_at", label: "创建时间",  align: "",isShow: true,tag: false },
	{ prop: "updated_at", label: "更新时间",  align: "",isShow: true,tag: false },


{prop: "operation", label: "操作", fixed: "right"}
);

//[创建]表单列默认配置
export const CreateColumnsData: EditColumns = new EditColumns(
	{ type: "number", title: "旅行ID", col:{ span:12 }, field: "trip_id", effect:{},props: {},validate:[{required: true, message: "必填项：旅行ID(数字类型)" }] },
	{ type: "input", title: "物品名称", col:{ span:12 }, field: "item_name", effect:{},props: {},validate:[{required: true, message: "必填项：物品名称(字符串类型)" }] },
	{ type: "number", title: "数量", col:{ span:12 }, field: "quantity", effect:{},props: {},validate:[{required: true, message: "必填项：数量(数字类型)" }] },

);

//[修改]表单列默认配置
export const UpdateColumnsData: EditColumns = new EditColumns(
	{ type: "hidden", title: "ID", col:{ span:12 }, field: "id", effect:{},props: {},validate:[{required: true, message: "必填项：ID(数字类型)" }] },
	{ type: "number", title: "旅行ID", col:{ span:12 }, field: "trip_id", effect:{},props: {},validate:[{required: true, message: "必填项：旅行ID(数字类型)" }] },
	{ type: "input", title: "物品名称", col:{ span:12 }, field: "item_name", effect:{},props: {},validate:[{required: true, message: "必填项：物品名称(字符串类型)" }] },
	{ type: "number", title: "数量", col:{ span:12 }, field: "quantity", effect:{},props: {},validate:[{required: true, message: "必填项：数量(数字类型)" }] },

);
}

